package org.hardcode.rpc.test.provider.service;


import org.hardcode.rpc.annotation.RpcService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@RpcService(interfaceClass = DemoService.class,interfaceClassName = "org.hardcode.rpc.test.provider.service.DemoService"
,version = "1.0.0",group = "hardCode")
public class ProviderDemoServiceImpl implements DemoService{

    private final Logger logger = LoggerFactory.getLogger(ProviderDemoServiceImpl.class);


    @Override
    public String hello(String name) {
        logger.info("Hello ===>"+name);
        return "hello"+name;
    }

    @Override
    public Integer add(Integer a, Integer b) {
        return a+b;
    }
}
